package com.zm.demo.core.collection;

import org.junit.Test;

import static java.lang.System.out;

/**
 * @author zoum
 * @create 2019/7/4 16:46
 */
public class T {

    @Test
    public void test(){

        Integer i = 3, j = 4, m = 5;
        out.println(i.hashCode());
        out.println(j & i);// 0100 & 0011
        out.println(j | i);// 0100 & 0011
        out.println(i ^ i);// 0100 & 0011
        out.println("i ^ j = " + (3 ^ 5));// 0101 ^ 0011
        out.println(i >>> 1);// 0011 >>> 16
        out.println(i ^ (i >>> 16));// 0011 >>> 16
    }
}
